ABC128 B - Guidebook
https://atcoder.jp/contests/abc128/tasks/abc128_b
提出
code: python
import copy
n = int(input())
sp =
list(input().split()) for _ in range(n)
sp_c = copy.copy(sp)
sp_c.sort(key=lambda x:(x
0
, -int(x
1
)))
for i in sp_c:
print(sp.index([i
0
, i
1
]) + 1)